package com.donger.business.cms.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.donger.business.cms.entity.CmsPost;
import com.donger.business.cms.service.CmsPostService;
import org.apache.ibatis.annotations.Param;

/**
 * cms文章(CmsPost)表数据库访问层
 *
 * @author somliy
 * @since 2020-05-07 19:06:17
 */
public interface CmsPostMapper extends BaseMapper<CmsPost> {

    /**
     * 分页查询
     * @param page 分页对象
     * @param queryWrapper 查询参数
     * @return 分页数据
     */
    IPage<CmsPost> postPage(Page<CmsPost> page,@Param("ew") Wrapper<CmsPostService> queryWrapper);
}